home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
cbibcode.arc
/
TOASCII.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1991-08-05
|
337 b
|
18 lines
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
main(int argc, char **argv)
{
int ch;
if(argc < 2)
{
printf("Usage : %s <integer_value>\n",
argv[0]);
}
else
{
ch = toascii(atoi(argv[1]));
printf("%s converted to ASCII characer = %#x\n\
It prints as %c on the IBM PC\n", argv[1], ch, ch);
}
}